package org.eiahe.hr.performance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.performance.domain.PerformancePositionIndicator;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 岗位指标关联视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PerformancePositionIndicator.class)
public class PerformancePositionIndicatorVo {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 岗位ID
     */
    private Long positionId;

    /**
     * 岗位名称
     */
    private String positionName;

    /**
     * 指标ID
     */
    private Long indicatorId;

    /**
     * 指标名称
     */
    private String indicatorName;

    /**
     * 关联层级(1直接关联 2继承关联)
     */
    private Integer level;

    /**
     * 父岗位指标关联ID
     */
    private Long parentPositionIndicatorId;

    /**
     * 权重
     */
    private BigDecimal weight;

    /**
     * 删除标志(0存在 1删除)
     */
    private String delFlag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 子指标列表
     */
    private List<PerformancePositionIndicatorVo> children;
}